#ifndef WIDGET_H
#define WIDGET_H
#include <mytcpsocket.h>
#include <QWidget>
#include <QTcpSocket>
QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE
class Widget : public QWidget
{
    Q_OBJECT
public:
    Widget(QWidget *parent = nullptr);
    ~Widget();
    void loadConfig();//加载配置文件
private:
    QString m_strIp;
    quint16 m_usPort;
    QTcpSocket m_tcpSocket;
private:
    Ui::Widget *ui;
};
#endif // WIDGET_H
